package cn.zhl.time;

import org.junit.Test;

import java.time.LocalDateTime;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-04-27 20:09
 **/
public class TimeDemo {
	@Test
	public void test1() {
		LocalDateTime now = LocalDateTime.now();
		System.out.println(now);
		LocalDateTime ldt2 = LocalDateTime.of(2020, 4, 27, 20, 14, 33);
		System.out.println(ldt2);
		LocalDateTime ldt3 = ldt2.plusHours(1);
		System.out.println(ldt3);
	}
}
